package com.ruoyi.forum.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UpdatePassword  implements Serializable {

    private static final long serialVersionUID = 1L;

//    @NotNull(message = "邮箱地址不能为空")
    @NotBlank(message = "邮箱地址不能为空")
    private String email;

//    @NotEmpty(message = "密码不能为空")
    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "验证码不能为空")
    private String code;

}
